-- GENERATED SPELL FOR [Boulderfist Enforcer] --


function spell0_2564(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_2564', 30257, 1)
end

function spell1_2564(pUnit, Event) --@Fist of Stone,Self--
pUnit:FullCastSpellOnTarget(4955,pUnit)
pUnit:RegisterEvent('Sorts_2564', 12000, 1)
end

function Sorts_2564(pUnit, Event)
local choix_sorts_2564 = math.random(0, 1)
if choix_sorts_2564 == 0 then
pUnit:RegisterEvent('spell0_2564', 1, 1)
end
if choix_sorts_2564 == 1 then
pUnit:RegisterEvent('spell1_2564', 1, 1)
end
end

function mob2564_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2564', math.random(1500, 3000), 1)
end

function mob2564_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2564_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2564_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2564, 1, 'mob2564_Action')
RegisterUnitEvent(2564, 2, 'mob2564_Leave')
RegisterUnitEvent(2564, 3, 'mob2564_Kill')
RegisterUnitEvent(2564, 4, 'mob2564_Die')
